package com.vito.oa.email.service;

import java.util.List;
import java.util.Map;

import com.vito.oa.email.model.ExternalContacts;

public interface OaBaseUserService {
	
	
	/**
	 * 查询用户密码
	 * @param userId
	 * @return
	 */
	public String getUserPassword(String userId);
	
	/**
	 * 查询内部联系人
	 * @param dept
	 * @return
	 */
	public List<Map<String,String>> getInnerContactsTree(String dept);
	
	/**
	 * 检查邮箱
	 * @param contacts
	 * @return
	 */
	public ExternalContacts getContactsByMail(ExternalContacts contacts);
	
	/**
	 * 检查用户表邮箱是否重复
	 * @param eamil
	 * @return
	 */
	public int getUserMail(String email);
	
	/**
	 * 查询所有用户邮箱对应用户
	 * @return
	 */
	public List<Map<String, String>> getAllUserEmail();
	
	/**
	 * 根据id查询用户
	 * @param userId
	 * @return
	 */
	public Map<String, Object> getUserById(String userId);
	
}
